import request from 'umi-request';
import { AuthResponseInterceptor, JwtRequestInterceptor } from 'geminis-react';

export const qiankun = {
  // 应用加载之前
  async bootstrap(props: any) {
    console.log('geminis-everydata 开始加载', props);
  },
  // 应用 render 之前触发
  async mount(props: any) {
    console.log('geminis-everydata 开始渲染', props);
  },
  // 应用卸载之后触发
  async unmount(props: any) {
    console.log('geminis-everydata 卸载完成', props);
  },
};

request.interceptors.request.use(JwtRequestInterceptor);
// request.interceptors.response.use(AuthResponseInterceptor);
